Skip to content

ci: add enrich_extra_flags.py for re-runnable PIO extra_flags sweep#307

Merged
zackees merged 1 commit into
mainfrom
fix/enrich-extra-flags-broad
May 31, 2026
Merged

ci: add enrich_extra_flags.py for re-runnable PIO extra_flags sweep#307
zackees merged 1 commit into
mainfrom
fix/enrich-extra-flags-broad

Conversation

@zackees
Copy link
Copy Markdown
Member

@zackees zackees commented May 30, 2026

Summary

Adds a re-runnable Python tool — ci/enrich_extra_flags.py — that fetches build.extra_flags from upstream PlatformIO board JSONs (platformio + maxgerhardt forks) and patches missing fields into fbuild's bundled assets/boards/json/*.json. Existing values are never overwritten.

uv run python ci/enrich_extra_flags.py                # all platforms
uv run python ci/enrich_extra_flags.py nordicnrf52    # one platform

Why this is a 1-file PR now

The original PR was a bundle of three related changes. All three landed independently while this branch was open:

Original item Landed as
#297build_info_<env>.json emitter #309
#300 — Teensyduino CMSIS-DSP per-MCU auto-link #313
#298build.extra_flags broad JSON sweep #312

The JSON sweep that #312 enacted was driven by an early version of this exact script. Preserving the script in the repo lets us re-run the sweep when:

  • new boards are added to the bundle
  • upstream PlatformIO platform JSONs gain extra_flags they didn't have before
  • new community forks (e.g., new pioarduino releases) appear

Test plan

🤖 Generated with Claude Code

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 30, 2026

Warning

Review limit reached

@zackees, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 20 minutes and 50 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 79adf0ad-23df-49eb-b512-b2a293f764ef

📥 Commits

Reviewing files that changed from the base of the PR and between 4e327d9 and 9a4d7ea.

📒 Files selected for processing (1)
  • ci/enrich_extra_flags.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/enrich-extra-flags-broad

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Adds a re-runnable Python tool that fetches `build.extra_flags` from
upstream PlatformIO board JSONs (platformio + maxgerhardt forks) and
patches missing fields into fbuild's bundled `assets/boards/json/*.json`.
Existing values are never overwritten.

The actual JSON sweep this enabled has already landed via #312;
preserving the script for future re-runs (new boards, upstream changes,
or new community forks).

Usage:
    uv run python ci/enrich_extra_flags.py                # all platforms
    uv run python ci/enrich_extra_flags.py nordicnrf52    # one platform

Note: prior versions of this PR also carried duplicate copies of the
build_info.json emitter (#297 → landed as #309), the Teensyduino
CMSIS-DSP auto-link (#300 → landed as #313), and the extra_flags JSON
sweep itself (#298 → landed as #312). All three landed independently;
this branch is squashed down to just the enrichment script.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@zackees zackees force-pushed the fix/enrich-extra-flags-broad branch from 8071487 to 9a4d7ea Compare May 30, 2026 23:47
@zackees zackees changed the title fix(board-db): emit build_info.json + CMSIS-DSP auto-link + extra_flags sweep ci: add enrich_extra_flags.py for re-runnable PIO extra_flags sweep May 30, 2026
@zackees zackees merged commit 50aafb2 into main May 31, 2026
80 of 82 checks passed
@zackees zackees deleted the fix/enrich-extra-flags-broad branch May 31, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant